<?php

namespace App\Admin\Controllers;

use Dcat\Admin\Admin;
use Dcat\Admin\Http\Controllers\AdminController;
use Dcat\Admin\Layout\Content;

admin_inject_section(Admin::SECTION['HEAD'], function () {

    $text = <<<EOT
<link rel="stylesheet" href="/js/common/element-ui.css">
    <script src="/js/common/vue@2.7.16.js"></script>
    <script src="/js/common/element-ui@2.15.14.js"></script>
    <script src="/js/common/axios.min.js"></script>
    <script src="/js/api.js"></script>
    <script src="/js/store-api.js"></script>
    <script src="/js/store-apply-api.js"></script>
    <script src="/js/tinymce4.7.5/tinymce.min.js"></script>
    <script src="https://api.map.baidu.com/api?v=2.0&ak=b6WWqwPeGhsb9Wg7Sdvyf8vUOIGf3579"></script>

EOT;
    return  $text ;
});


class VuePageController extends AdminController
{
    protected function initVueAssets(): void
    {
        
    }

    protected function vue(Content $content): Content
    {
        $this->initVueAssets();
        return $content;
        // return $content->view('admin.layouts.vue');
    }
}


